<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/sablon/sablon.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="title">
        #{lbl.musteri_yonetimi}
    </ui:define>
    <ui:define name="content">
        <p:panel> <
            <f:facet name="header">  
                <h:outputText value="#{lbl.musteri_islemleri }"/> 		           
            </f:facet> 
            <p:dataTable value="#{musteriMB.musteriList}" var="musteri" 
                         rowKey="#{musteri.id}" paginator="true" rows="1"  lazy="true"
                         selection="#{musteriMB.musteri}" selectionMode="single" filteredValue="#{musteriMB.filteredMusteriList}" id="musteriTable">
                
                <p:ajax event="rowSelect" oncomplete="carDialog.show()" />
                
                <p:column headerText="#{lbl.musteri_id}" sortBy="id" filterBy="id">
                    <h:outputText value="#{musteri.id}"/>
                </p:column>
                <p:column headerText="#{lbl.musteri_imei}" sortBy="ad" filterBy="ad">
                    <h:outputText value="#{musteri.imei}"/>
                </p:column>
                <p:column headerText="#{lbl.musteri_adi}" sortBy="ad" filterBy="ad">
                    <h:outputText value="#{musteri.ad}"/>
                </p:column>
                <p:column headerText="#{lbl.musteri_soyadi}" sortBy="soyad" filterBy="soyad">
                    <h:outputText value="#{musteri.soyad}"/>
                </p:column>
                <p:column headerText="#{lbl.musteri_mail}" sortBy="email" filterBy="email">
                    <h:outputText value="#{musteri.email}"/>
                </p:column>
            </p:dataTable>
        </p:panel>
    </ui:define>

    <ui:define name="body">

    </ui:define>
</ui:composition>
